<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>注册成功，发送EMAIL:i友邻社区</title>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/other/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav"><a href="${cpath}/index.jsp">首页</a> >> 加入社区</div>
	<%@ include file="/navf.jsp"%>
 </div> 
  <!--导航面包屑 end -->
  
  <!--主体 start -->
 <div class="body register">
  <div class="register-box">
     <div class="register-top">注册成功，请验证您的邮件账户！</div>
      <div class="register-content">
 		<form action="${cpath}/users.do?action=sendEmail" name="theForm"  method="post" >
      
			  <b>谢谢您的注册！</b> <br />
			  我们给您发送了一封确认邮件到 ${theForm.email}，<br />
			  请点击邮件中的链接，点击激活，完成注册。<input type="button" name="con"  id="con" onclick="javascript:doConfirm();" class="longBtn" value="去我的邮箱确认"/> <br />
			  <b>没有收到验证邮件怎么办？ </b><br />
			  （1）请查看是否在您邮箱的广告邮件或垃圾邮件目录里 <br />
			  （2）试试<a href="javascript:sendEmail();"> 重发验证邮件</a><br />
				<!--隐藏域-->
				<input type="hidden" name='userID'		value='${theForm.userID}'/>
				<input type="hidden" name='email'		value='${theForm.email}'/>
		</form>
      </div>
  </div>   
  <div class="clearFloat"></div>
 </div> 
 <!--主体 end --> 
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
<script>
  /**
   * 检查项目资料维护
   */
	function doConfirm()
	{

		var form = document.theForm;

		var email = form['email'].value;

		var pos = email.indexOf("@");



		var webaddr = email.substring(parseInt(pos)+1);

		if(webaddr == "sina.com" || webaddr == "sina.cn"){
		
			webaddr = "http://mail.sina.com.cn" ;
		}else if(webaddr == "163.com" || webaddr == "126.com" || webaddr == "yeah.net"){
		
			webaddr = "http://email.163.com" ;
		}else if(webaddr == "yahoo.com.cn"||webaddr == "yahoo.cn"){

			webaddr = "http://mail.cn.yahoo.com" ;
		}else if(webaddr == "qq.com" || webaddr == "vip.qq.com" || webaddr == "foxmail.com"){

			webaddr = "https://mail.qq.com" ;
		}else if(webaddr == "sohu.com"){

			webaddr = "http://mail.sohu.com/" ;
		}else if(webaddr == "139.com"){

			webaddr = "http://mail.10086.cn/" ;
		}else{
		
			webaddr = "http://www." + webaddr;
		}
		
		window.location.href(webaddr); 
	}	
  /**
   * 根据具体请求设置各个组件状态	
   */
  function sendEmail()
  {
	var form = document.theForm;
	form.submit();
  }
</script>